import request from '@/utils/request'

// 查询门店管理员工资列表
export function listWage(query) {
  return request({
    url: '/system/store-manager/wage/list',
    method: 'get',
    params: query
  })
}

// 查询门店管理员工资详细
export function getWage(id) {
  return request({
    url: '/system/store-manager/wage/' + id,
    method: 'get'
  })
}

// 新增门店管理员工资
export function addWage(data) {
  return request({
    url: '/system/store-manager/wage',
    method: 'post',
    data: data
  })
}

// 修改门店管理员工资
export function updateWage(data) {
  return request({
    url: '/system/store-manager/wage',
    method: 'put',
    data: data
  })
}

// 删除门店管理员工资
export function delWage(id) {
  return request({
    url: '/system/store-manager/wage/' + id,
    method: 'delete'
  })
}

// 查询门店管理员工资详细
export function getUserData() {
  return request({
    url: '/system/store/manager/list',
    method: 'get'
  })
}
